#!/bin/bash

# mh-apiserver 启动脚本

# 应用名称
APP_NAME=mh-apiserver

# JVM参数
JVM_OPTS="-Xms512m -Xmx1024m"

# 应用端口
SERVER_PORT=8081

# 启动应用
echo "Starting $APP_NAME..."
nohup java $JVM_OPTS -jar target/$APP_NAME.jar --server.port=$SERVER_PORT > logs/app.log 2>&1 &
echo "$APP_NAME started successfully!"